import { createPinia } from 'pinia'

import persist from 'pinia-plugin-persistedstate'
//装入持久化插件
const pinia= createPinia().use(persist)

//统一导入和导出所有modules
export * from './modules/user.js'
export * from './modules/study_room.js'
export * from './modules/agent.js'

// 导出配置好持久化的pinia实例
export default pinia
